package 单例;

/**
 * 懒汉
 */
public class Lazy {
    /**
     * 线程不安全
     */
    private static Test test = null;

    private Lazy() {

    }

    public Test getTest() {
        if (test == null) {
            return test;
        }
        return null;
    }
}
